<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::get('think', function () {
    return 'hello,ThinkPHP8!';
});

Route::get('/admin/index', '\app\controller\admin\LoginController@index');
Route::post('/admin/loginChecked', '\app\controller\admin\LoginController@loginChecked');
Route::group('admin', function() {
    Route::get('/logout', '\app\controller\admin\LoginController@logout');

    Route::get('/baseinfo/index', '\app\controller\admin\BaseinfoController@index');
    Route::post('/baseinfo/lists', '\app\controller\admin\BaseinfoController@lists');
    Route::get('/baseinfo/add', '\app\controller\admin\BaseinfoController@add');
    Route::post('/baseinfo/create', '\app\controller\admin\BaseinfoController@create');
    Route::get('/baseinfo/edit', '\app\controller\admin\BaseinfoController@edit');
    Route::post('/baseinfo/update', '\app\controller\admin\BaseinfoController@update');
    Route::post('/baseinfo/delete', '\app\controller\admin\BaseinfoController@delete');
})->middleware([\app\middlewares\AdminAuth::class]);
